package cmo.neutech.day09.Score;

public class English extends Student{
    double lecture;
    double midExam;
    double finalExam;
    public English(int sno,String name,String sex,int age,double lecture,double midExam,double finalExam){
        super(sno, name, sex, age);
        this.lecture = lecture;
        this.midExam = midExam;
        this.finalExam = finalExam;
    }
    public double getScore(){
        score = 0.5*lecture+0.25*midExam+0.25*finalExam;
        return score;
    }
}
